<template>
  <div class="headers" name="headers">
    <van-search
        v-model="value"
        placeholder="请输入搜索关键词"
        input-align="center"
        @click="onSearch"
    />
  </div>
</template>

<script>
export default {
  name: 'headers',
  data() {
    return {
      value:'',
    };
  },
  // 子组件转换
  components: {},
  // 数据引入
  mounted() {
  },
  created() {
  },
  //点击函数事件
  methods: {
    onSearch(){
      this.$router.push('/search')
    }
  },
  //计算事件
  computed: {},
  //数据监听
  watch: {},
  //过滤器
  filters: {},
  //设定自定义指令
  directives: {},
}
</script>
<style lang="scss" scoped>

</style>
